#include <cstdio>
#include <cstring>
using namespace std;
char pass[25];
char vowels[]={'a','e','i','o','u'};
bool isvow(char c){
    for(int i=0;i<5;i++){
        if(c==vowels[i]){
            return true;
        }
    }
    return false;
}
int main(void){
    while(scanf("%s",pass)!=EOF){
        if(pass[0]=='e' && pass[1]=='n' && pass[2]=='d'){
            break;
        }
        bool ac=true;
        int len=strlen(pass);
        int vow=0;
        for(int i=0;i<len;i++){
            if(i<len-1 && pass[i]==pass[i+1] && pass[i]!='e' && pass[i]!='o'){
                ac=false;
                break;
            }
            if(isvow(pass[i])){
                vow++;
                if(i<len-2 && isvow(pass[i+1]) && isvow(pass[i+2])){
                    ac=false;
                    break;
                }
            }
            else{
                if(i<len-2 && !isvow(pass[i+1]) && !isvow(pass[i+2])){
                    ac=false;
                    break;
                }
            }
        }
        if(vow==0){
            ac=false;
        }
        if(ac){
            printf("<%s> is acceptable.\n",pass);
        }
        else{
            printf("<%s> is not acceptable.\n",pass);
        }
    }
    return 0;
}